<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head></h:head> 
  
    <f:view>
               <h:form id="UserForm" prependId="false" >
                   <p:growl id="growl" showDetail="true" life="3000" /> 
                         <p:panel header="Thêm Mới Sinh Viên" style="background-color: #ebf3fd;">  
                            <h:panelGrid columns="2" cellpadding="5">  
                                         <h:outputLabel for="username" value=" Mã Sinh Viên : *" />  
                                         <p:inputText value="#{sinhvienbean.masv}"   id="username" required="true" label="username" />  
                                         <h:outputLabel for="tenmh" value=" Họ Sinh Viên : * " />  
                                         <p:inputText value="#{sinhvienbean.hosv}"   id="tenmh" required="true" label="Tên Môn Học" />  
                                         <h:outputLabel for="ghiChu" value=" Tên Sinh Viên:  " />  
                                         <p:inputText    value="#{sinhvienbean.tensv}"   id="ghiChu" required="true" label="Ghi Chú " /> 
                                         <h:outputLabel for="ngaysinh" value=" Ngày Sinh : * " />  
                                         <p:inputText value="#{sinhvienbean.ngaysinh}"   id="ngaysinh" required="true" label="Tên Môn Học" />  
                                         <h:outputLabel for="tendangnhap" value=" Tên Đăng Nhập : * " />  
                                         <p:inputText value="#{sinhvienbean.name}"   id="tendangnhap"  label="Tên Môn Học" />  
                                         <h:outputLabel for="pass" value=" Password : * " />  
                                         <p:inputText value="#{sinhvienbean.password}"   id="pass"  label="Tên Môn Học" />  
                                     <f:facet name="footer">  
                                         <p:commandButton value=" Thêm Mới " update="formTable,UserForm"    actionListener="#{sinhvienBO.add(sinhvienbean)}" ajax="true"  />               
                                     </f:facet>  
                           </h:panelGrid> 
                       </p:panel> 
                             
   </h:form>

</f:view>
     
</html>

